package com.manolo.framework.connection.entity;

import java.util.ArrayList;
import java.util.List;

import com.manolo.framework.deck.Card;

public class Player {
	
	private int id ;
	
	private String name;
	
	private boolean hasSendCads;
	
	//Id another player
	private int idCoPartner;

	//1-play, 2 -wait
	//TODO: Refactor this with Tiago and Rafael
	private int status;
	
	private List<Card> cards;
	
	private List<Message> messages;
	
	public boolean isHasSendCads() {
		return hasSendCads;
	}
	public void setHasSendCads(boolean hasSendCads) {
		this.hasSendCads = hasSendCads;
	}
	public Player() {
		hasSendCads = false;
		cards = new ArrayList<Card>();
		messages = new ArrayList<Message>();
	}
	public Player(int id) {
		
	}
	public int getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public int getIdCoPartner() {
		return idCoPartner;
	}
	public int getStatus() {
		return status;
	}
	public List<Card> getCards() {
		return cards;
	}
	public List<Message> getMessages() {
		return messages;
	}
	public void addMessage(Message msg) {
		this.getMessages().add(msg);
	}
	
	public void setId(int id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setIdCoPartner(int idCoPartner) {
		this.idCoPartner = idCoPartner;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public void setCards(List<Card> cards) {
		this.cards = cards;
	}
	public void setMessages(List<Message> messages) {
		this.messages = messages;
	}
	@Override
	public String toString() {
		return "Player [id=" + id + ", name=" + name + ", idCoPartner="
				+ idCoPartner + ", status=" + status + ", cards=" + cards
				+ ", messages=" + messages + "]";
	}
	
	
	
	
	
	

}
